function thisMovie(movieName) 
{
	if (navigator.appName.indexOf("Microsoft") != -1) return window[movieName];
	else return document[movieName];
}

function photoGalleryReady(value)
{
	thisMovie("Main").photoGalleryReady(value);
}

function getGallery()
{
    photoGalleryReady(getUserAssets());
}

function submitGallery(name)
{
	thisMovie("Main").setGalleryId("T76s5htwjasdf");
}